<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="styles/common.css">
    <!-- 自定义样式 -->
    <link rel="stylesheet" href="styles/regist.css">
     <!-- jquery -->
     <script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
    <title>快速注册</title>
</head>
<script type="text/javascript">
    ! function(e, t) { var n = t.documentElement,
    d = e.devicePixelRatio || 1;
    function i() { var e = n.clientWidth / 3.75;
        n.style.fontSize = e + "px" } if (function e() { t.body ? t.body.style.fontSize = "16px" : t.addEventListener("DOMContentLoaded", e) }(), i(), e.addEventListener("resize", i), 
        e.addEventListener("pageshow", function(e) { e.persisted && i() }), d >= 2) { var o = t.createElement("body"),
        a = t.createElement("div");
        a.style.border = ".5px solid transparent", o.appendChild(a), n.appendChild(o), 1 === a.offsetHeight && n.classList.add("hairlines"), n.removeChild(o) } }(window, document)
</script>
<body>
    <div class="main">
        <div class="close">
            <img src="images/close.png" alt="关闭">
        </div>
        <div class="title">
            <h3>快速注册</h3>
            <p>欢迎加入财富外汇圈！在这里打开您的言论！</p>
        </div>
        <div class="input-group">
            <div class="phone">
                <input class="input" type="text" placeholder="请输入手机号码">
            </div>
            <div class="code">
                <input class="input" type="text" placeholder="输入验证码">
                <input class="button" type="button" id="codeBtn" onclick="sendmail()" value="获取验证码"/>
            </div>
        </div>
        <div class="protocol">
            <input id="checkbox" type="checkbox">
            <label for="checkbox"></label>
            <div class="text">
                <span>注册代表已阅读并同意</span>
                <a href="#">《用户服务协议》</a>
            </div>
        </div>
        <input class="login-btn" type="button" value="登录">
    <div class="login-footer">
        <span>已有账户</span>
        <a>立即登录</a>
    </div>
</body>
<script type="text/javascript">
    // 验证码
    var countdown=60; 
    function sendmail(){
        var obj = $("#codeBtn");
        settime(obj);
        }
    function settime(obj) { //发送验证码倒计时
        if (countdown == 0) { 
            obj.attr('disabled',false); 
            obj.val("重新发送");
            countdown = 60; 
            return;
        } else { 
            obj.attr('disabled',true);
            obj.val("重新发送(" + countdown + ")");
            countdown--; 
        } 
        setTimeout(function() { 
            settime(obj) 
        } ,1000) 
    }
</script>
</html>